# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bridge-utils
pkgver=1.7.1
pkgrel=0
pkgdesc="Tools for configuring the Linux kernel 802.1d Ethernet Bridge"
url="https://wiki.linuxfoundation.org/networking/bridge/"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
makedepends="autoconf linux-headers"
source="https://git.kernel.org/pub/scm/network/bridge/bridge-utils.git/snapshot/bridge-utils-$pkgver.tar.gz
	fix-PATH_MAX-on-ppc64le.patch"
prepare() {
	default_prepare
	autoconf
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--libdir=/usr/lib \
		--includedir=/usr/include
	make
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
18aed40d36a0c3f7b461f7865a60b35c647e1ff9b0a854e857c8a4e3772163c49c6f99c9130443bedb382abbdced7dcfd4e812d21645b78e91c06c98e5e89305  bridge-utils-1.7.1.tar.gz
da0bf3d108d178f4b99863b2ae97a170b2dac589669ed209435cb0d2d5e88eec0ea9f11dbb70d9f3511c38535236e5c24a069383f1ba893533812a1c7860372d  fix-PATH_MAX-on-ppc64le.patch
"
